package bdqn.com.cui.service.impl;

import bdqn.com.cui.dao.CommodityDao;
import bdqn.com.cui.dao.impl.Commodityimpl;
import bdqn.com.cui.pojo.Commodity;
import bdqn.com.cui.pojo.User;
import bdqn.com.cui.service.Commodityservice;

import java.util.List;
import java.util.Map;

public class Commodityserviceimpl implements Commodityservice {
    CommodityDao commodityDao=new Commodityimpl();

    @Override
    public List<Commodity> getsenect(int form, int page) {
        return commodityDao.getsenect(form,page);
    }

    @Override
    public int getcount() {
        return commodityDao.getcount();
    }

    @Override
    public List<Commodity> getidserent(String id) {
        return commodityDao.getidserent(id);
    }

    @Override
    public int add(Commodity commodity) {
        return commodityDao.add(commodity);
    }

    @Override
    public int delete(String id) {
        return commodityDao.delete(id);
    }

    @Override
    public int update(User user) {
        return 0;
    }

    @Override
    public int Typeupdate(String type, String tj) {
        return commodityDao.Typeupdate(type,tj);
    }

    @Override
    public Map getxl() {
        return commodityDao.getxl();
    }



    @Override
    public int useradd(User user) {
        return 0;
    }

    @Override
    public int zcselent(String zhanghao) {
        return 0;
    }

    @Override
    public List<Commodity> fenleiselect() {
        return commodityDao.fenleiselect();
    }
}
